package products;

public class Main 
{
	public static void main(String args[]){
		Product product=new Product("ProdusA","PantalonVerde",50.00);
		System.out.println("Produsul este:");
		System.out.println(product);
		ProductStateMemory memory=new ProductStateMemory();
		memory.setMemento(product.memento());
		product.setName("Produs_A(2)");
		product.setDescription("Am modificat");
		product.setCost(60.00);
		System.out.println("Produsul 2 este:");
		System.out.println(product);
		product.restoreMemento(memory.getMemento());
		System.out.println("Produsul 3 este:");
		System.out.println(product);
		
	}

}